//
//  HPUsers.swift
//  MyWeibo
//
//  Created by apple on 16/4/13.
//  Copyright © 2016年 Apengpeng. All rights reserved.
//

import UIKit

class HPUsers: NSObject {
    
    // 用户ID
    var name: String?
    var screen_name: String?
    var profile_image_url: String?
    var profile_url: String?
    var verified: Bool?
    var verified_type = -1
    var mbrank: Int = 0
    
    // 构造字典转模型方法
    init(dict : [String : AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) { }

    // 将对象转化为字符串
    override var description: String {
        let keys = ["name", "profile_img_url"]
        let dict = self.dictionaryWithValuesForKeys(keys)
        return dict.description
    }
}
